package com.zhangyu;

import org.eclipse.milo.opcua.stack.core.AttributeId;
import org.eclipse.milo.opcua.stack.core.types.builtin.NodeId;
import org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName;
import org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId;

import java.util.ArrayList;
import java.util.List;

public class GHLZNode {
    public static List<ReadValueId> getGHLZNode() {

        ReadValueId counter1Id = new ReadValueId(new NodeId(5, "Counter1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        ReadValueId random1Id = new ReadValueId(new NodeId(5, "Random1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        ReadValueId sinusoid11Id = new ReadValueId(new NodeId(5, "Sinusoid1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        ReadValueId square1Id = new ReadValueId(new NodeId(5, "Square1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        ReadValueId sawtooth1Id = new ReadValueId(new NodeId(5, "Sawtooth1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        ReadValueId triangle1Id = new ReadValueId(new NodeId(5, "Triangle1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        ReadValueId expression1Id = new ReadValueId(new NodeId(5, "Expression1"), AttributeId.Value.uid(), null,
                QualifiedName.NULL_VALUE);
        List<ReadValueId> nodesToRead = new ArrayList<>();
        nodesToRead.add(counter1Id);
        nodesToRead.add(random1Id);
        nodesToRead.add(sinusoid11Id);
        nodesToRead.add(square1Id);
        nodesToRead.add(sawtooth1Id);
        nodesToRead.add(triangle1Id);
        nodesToRead.add(expression1Id);

        return nodesToRead;

    }
}